export function division(str) {
    if (!str || str.length < 3) return str;
    str = str.split("").reverse();
    let result = [],
        count = 0;
    while (count <= str.length - 1) {
        if (count !== 0 && count % 3 === 0) {
            result.push(",", str[count]);
        } else {
            result.push(str[count]);
        }
        count++;
    }
    return result.reverse().join("");
}